package p.ithorns.sample.spel;

import org.springframework.web.bind.annotation.*;

/**
 * UserController
 *
 * @author HtL
 * @date 2024/12/25 19:52
 * @since 1.0.0
 */
@CrossOrigin
@RestController
@RequestMapping("/user")
public class UserController {
    @PostMapping("/param")
    @SpElGetParam(param = "#user.name")
    public Object repeat(@RequestBody User user) {
        return user;
    }

}